package com.wholesale.commons;

import android.util.Log;

public class LogUtil {

	private static boolean debug = false ;

	public static boolean isDebug() {
		return debug;
	}

	public static void setDebug(boolean deb) {
		debug = deb;
	}
	
	public static void d(String tag,String msg){ 
		if(debug)Log.d(tag, msg);
	}
	public static void d(String tag,String msg,Throwable tr){ 
		if(debug)Log.d(tag, msg, tr);
	}
	public static void e(String tag,String msg){ 
		if(debug)Log.e(tag, msg);
	}
	public static void e(String tag,String msg,Throwable tr){ 
		if(debug)Log.e(tag, msg, tr);
	}
	public static void i(String tag,String msg){ 
		if(debug)Log.e(tag, msg);
	}
	public static void i(String tag,String msg,Throwable tr){ 
		if(debug)Log.e(tag, msg, tr);
	}
}
